package com.ruoyi.book.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 图书信息对象 book
 * 
 * @author ruoyi
 * @date 2025-01-19
 */
public class Book extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 封面 */
    @Excel(name = "封面")
    private String cover;

    /** 简介 */
    @Excel(name = "简介")
    private String descr;

    /** 作者 */
    @Excel(name = "作者")
    private String author;

    /** 出版社 */
    @Excel(name = "出版社")
    private String publisher;

    /** 出版日期 */
    @Excel(name = "出版日期")
    private String date;

    /** 价格 */
    @Excel(name = "价格")
    private String price;

    /** ISBN */
    @Excel(name = "ISBN")
    private String isbn;

    /** 库存 */
    @Excel(name = "库存")
    private Long store;

    /** 分类ID */
    @Excel(name = "分类ID")
    private Long categoryId;

    /** 是否上架 */
    @Excel(name = "是否上架")
    private Integer grounding;

    /** 是否推荐 */
    @Excel(name = "是否推荐")
    private Integer recommend;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }
    public void setDescr(String descr) 
    {
        this.descr = descr;
    }

    public String getDescr() 
    {
        return descr;
    }
    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }
    public void setPublisher(String publisher) 
    {
        this.publisher = publisher;
    }

    public String getPublisher() 
    {
        return publisher;
    }
    public void setDate(String date) 
    {
        this.date = date;
    }

    public String getDate() 
    {
        return date;
    }
    public void setPrice(String price) 
    {
        this.price = price;
    }

    public String getPrice() 
    {
        return price;
    }
    public void setIsbn(String isbn) 
    {
        this.isbn = isbn;
    }

    public String getIsbn() 
    {
        return isbn;
    }
    public void setStore(Long store) 
    {
        this.store = store;
    }

    public Long getStore() 
    {
        return store;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setGrounding(Integer grounding) 
    {
        this.grounding = grounding;
    }

    public Integer getGrounding() 
    {
        return grounding;
    }
    public void setRecommend(Integer recommend) 
    {
        this.recommend = recommend;
    }

    public Integer getRecommend() 
    {
        return recommend;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("cover", getCover())
            .append("descr", getDescr())
            .append("author", getAuthor())
            .append("publisher", getPublisher())
            .append("date", getDate())
            .append("price", getPrice())
            .append("isbn", getIsbn())
            .append("store", getStore())
            .append("categoryId", getCategoryId())
            .append("grounding", getGrounding())
            .append("recommend", getRecommend())
            .toString();
    }
}
